using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace AppManagement.MainManagers
{
	#region using
	using DevComponents.DotNetBar;
	using AppManagement.Models;
	using AppManagement.Repositories;
	using AppManagement.Helpers;
	using AppManagement.UsersManager;
	using System.Data;
	using System.Drawing;
	using System.IO;
    using AppManagement.Reports;
	#endregion

    public partial class FrmThongKeTONKHO : Office2007Form
    {
        public FrmThongKeTONKHO()
        {
            InitializeComponent();
            InitForms();
        }

        private void InitForms()
        {
            cbxQui.Items.Clear();
            cbxQui.Items.Add("Quí 1");
            cbxQui.Items.Add("Quí 2");
            cbxQui.Items.Add("Quí 3");
            cbxQui.Items.Add("Quí 4");

            cbxNam.Items.Clear();
            for (int i = 2000; i <= DateTime.Now.Year; i++)
            {
                cbxNam.Items.Add(i);
            }

            cbxQui.SelectedIndex = 0;
            cbxNam.SelectedIndex = 0;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnThongKe_Click(object sender, EventArgs e)
        {
            FrmInThongKeTonKho frm = new FrmInThongKeTonKho
            {
                Qui = cbxQui.SelectedItem.ToString(),
                Nam = int.Parse(cbxNam.SelectedItem.ToString())
            };
            frm.ShowDialog();
        }
    }
}
